package day13;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 分析耗时日志
 */
public class LogDemo {

    private static final Logger LOGGER = LoggerFactory.getLogger(LogDemo.class);


    public static void main(String[] args) {

        long t1 =System.currentTimeMillis();

        System.out.println("我是controller，接收到了A请求的内容");

        long t2 =System.currentTimeMillis();

        LOGGER.debug("执行controller耗时，cost={}",t2-t1);
        System.out.println("执行controller耗时，cost={}"+","+(t2-t1));



    }


}
